//
//  UIButton+Extend.h
//  RMMaterialRed
//
//  Created by XBWH on 2024/3/13.
//

#import <UIKit/UIKit.h>
#import <objc/runtime.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, RBButtonEdgeInsetsStyle) {
    /// image在上，label在下
    RBButtonEdgeInsetsStyleTop,
    /// image在左，label在右
    RBButtonEdgeInsetsStyleLeft,
    /// image在下，label在上
    RBButtonEdgeInsetsStyleBottom,
    /// image在右，label在左
    RBButtonEdgeInsetsStyleRight
};

@interface UIButton (Extend)
///设置button的titleLabel和imageView的布局样式，及间距
- (void)rb_layoutButtonWithEdgeInsetsStyle:(RBButtonEdgeInsetsStyle)style
                        imageTitleSpace:(CGFloat)space;
@end

NS_ASSUME_NONNULL_END
